package com.java.mapper;

import com.java.pojo.InRoomInfoBean;
import org.apache.ibatis.annotations.Insert;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * @function:
 * @CreateTime: 2021/3/16 22:41
 */
public interface InRoomMapper {
    /**
     * 条件查询房间入住信息
     * @param paramMap
     * @return
     */
    List<Map<String,Object>> getInRoomInfo(Map<String,Object> paramMap);

    /**
     * 添加用户入住信息
     * @param inRoomInfoBean
     * @return
     */
    @Insert("insert into " +
            "in_room_info(customer_name,gender,is_vip,idcard,phone,money,create_date,room_id,`status`,out_room_status) " +
            " values(#{customerName},#{gender},#{isVip},#{idcard},#{phone},#{money},#{createDate},#{roomId},'1','0')")
    int insertInRoomInfo(InRoomInfoBean inRoomInfoBean);


}
